package com.ruoyi.finance.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 行业分类对象 industry
 * 
 * @author 李伟
 * @date 2025-02-24
 */
@Data
public class Industry extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 行业ID */
    private Long industryId;

    /** 行业名称 */
    @Excel(name = "行业名称")
    @NotBlank(message = "行业名称不能为空")
    private String industryName;

    /** 创建人 */
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    public void setIndustryId(Long industryId) 
    {
        this.industryId = industryId;
    }

    public Long getIndustryId() 
    {
        return industryId;
    }
    public void setIndustryName(String industryName) 
    {
        this.industryName = industryName;
    }

    public String getIndustryName() 
    {
        return industryName;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("industryId", getIndustryId())
            .append("industryName", getIndustryName())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .toString();
    }
}
